/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import POJO.Options;
import Util.DataAccessUtil;
import java.util.List;

/**
 *
 * @author Nguyễn Thi Mỷ Diện (1140214)
 */
public class OptionsDAO {
    public static List<Options> getListOptions() throws Exception{
        List<Options> list;
        String hql = "SELECT p from Options p";       
        list = (List<Options>)DataAccessUtil.getList(hql);
        return list;
    }
    
    public static boolean updateOptions(List<Options> list){
        return DataAccessUtil.update(list);
    }
}
